package com.chalk.feign;


import com.chalk.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author xiaoqiang
 * @Description //@FeignClient(name = "provider-demo", fallback = HystrixClientFallback.class)
 * @date 2019/3/7 17:16
 */

@FeignClient(name = "admin-provider", fallbackFactory = HystrixClientFactory.class)
public interface UserFeignClient {

    @GetMapping(value = "/user/getUser/{id}")
    public User getUser(@PathVariable("id") Long id);


}
